package com.freeter.modules.job.task;


import com.freeter.modules.gjs.service.LowStockAlertComponent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 低库存邮件预警job
 */
@Component
public class LowStockAlertJob extends AbstractTask {

    @Autowired
    private LowStockAlertComponent lowStockAlertComponent;

    @Override
    public void  run(){
        lowStockAlertComponent.sendAlertMail();
    }

}